package com.example.onlinemusic.mapper;


import com.example.onlinemusic.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {


    int insert(String title,String singer,String time,String url,int userid);


    Music findMusicById(int id);


    int deleteMusicById(int musicId);

    /**
     * 查询所有音乐
     * @return
     */
    List<Music> findMusic();

    /**
     * 查询指定音乐
     */

    List<Music> findMusicByName(String name);

}
